package com.mingyuan.library.domain.lending.patron.model.valueobject;

import com.mingyuan.library.domain.common.model.ValueObject;
import lombok.NonNull;
import lombok.Value;

/**
 * 拒绝值对象
 * @author yangzk
 * @date 2023/12/28 18:50
 **/
@Value
@ValueObject
public class Rejection {
    /**
     * 原因
     */
    @NonNull
    String reason;


    public static Rejection withReason(String reason) {
        return new Rejection(reason);
    }
}